

<div class="span9">

<div id="content">
  

  <div class="row"> 
      
      <div class="product-info">
      
        <!-- Image -->
        <?php if ($thumb || $images) { ?>
        <div class="span4">
          <?php if ($thumb) { ?> 
          <div class="image radius"><a href="<?php echo $popup; ?>"  class="colorbox"><img src="<?php echo $thumb; ?>"  id="image" /></a></div>
          <?php } ?>
          <!--
          <?php if ($images) { ?>
          <div class="image-additional">
              <div class="details slider5">
                <?php foreach ($images as $image) { ?>
                <div class="slide">
                    <a href="<?php echo $image['popup']; ?>"  class="colorbox">
                        <img class="radius" src="<?php echo $image['thumb']; ?>"  />
                    </a>
                </div>
                <?php } ?>
              </div>
          </div>
          <?php } ?>
          -->
        </div>
        <?php } ?>
        
        <div class="span5">
          <!-- Name -->
          <!-- Description -->
           <div class="description">
                <table>
                    <?php if ($manufacturer) { ?>
                    <tr>
                        <td width="130px"><span><?php echo $text_manufacturer; ?></span></td> 
                        <td><a href="<?php echo $manufacturers; ?>"><?php echo $manufacturer; ?></a></td>
                    </tr>
                    <?php } ?>
                    <tr>
                        <td><span><?php echo $text_model; ?></span></td> 
                        <td><?php echo $model; ?></td>
                    </tr>
                    <?php if ($reward) { ?>
                    <tr>
                        <td><span><?php echo $text_reward; ?></span></td> 
                        <td><?php echo $reward; ?></td>
                    </tr>
                    <?php } ?>
                    <tr>
                        <td><span><?php echo $text_stock; ?></span></td> 
                        <td><?php echo $stock; ?></td>
                    </tr>
                </table>
            </div>
            
            
            <!-- Price -->
          <?php if ($price) { ?>
          <div class="price"><?php echo $text_price; ?>
            <?php if (!$special) { ?>
            <?php echo $price; ?>
            <?php } else { ?>
            <span class="price-new"><?php echo $special; ?></span>
            <span class="price-old"><?php echo $price; ?></span> 
            <span class="sale radius">-<?php echo $saving; ?>%</span>
            <?php } ?>
            <br />
            <?php if ($tax) { ?>
            <span class="price-tax"><?php echo $text_tax; ?> <?php echo $tax; ?></span><br />
            <?php } ?>
            <?php if ($points) { ?>
            <span class="reward"><small><?php echo $text_points; ?> <?php echo $points; ?></small></span><br />
            <?php } ?>
            <?php if ($discounts) { ?>
            <br />
            <div class="discount">
              <?php foreach ($discounts as $discount) { ?>
              <?php echo sprintf($text_discount, $discount['quantity'], $discount['price']); ?><br />
              <?php } ?>
            </div>
            <?php } ?>
          </div>
          <?php } ?>
          
          
          <?php if ($review_status) { ?>
          <div class="review">
            <div><img src="catalog/view/theme/denzi/image/stars-<?php echo $rating; ?>.png" alt="<?php echo $reviews; ?>" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <a onclick="$('a[href=\'#tab-review\']').trigger('click');"><?php echo $reviews; ?></a>&nbsp;&nbsp;|&nbsp;&nbsp;
            <a onclick="$('a[href=\'#tab-review\']').trigger('click');"><?php echo $text_write; ?></a></div>
          </div>
          <?php } ?>
          

          
          
          <!-- cart -->
          <div class="cart">
            <div><?php echo $text_qty; ?>
              <input class="qty" type="text" name="quantity" size="2" value="<?php echo $minimum; ?>" />
              <input type="hidden" name="product_id" size="2" value="<?php echo $product_id; ?>" />
              &nbsp;
              <input type="button" value="<?php echo $button_cart; ?>" id="button-cart" class="addtocart radius" />
              <span>&nbsp;&nbsp;<?php echo $text_or; ?>&nbsp;&nbsp;</span>
              <span class="links">
              <a onclick="addToWishList('<?php echo $product_id; ?>');"><i class="fa fa-heart-o"></i> <?php echo $button_wishlist; ?></a><br />
              <a onclick="addToCompare('<?php echo $product_id; ?>');"><i class="fa fa-bar-chart-o"></i> <?php echo $button_compare; ?></a>
              </span>
            </div>
            <?php if ($minimum > 1) { ?>
            <div class="minimum"><?php echo $text_minimum; ?></div>
            <?php } ?>
          </div>
          
 
        </div>
      </div><!--/product info-->
  </div><!--/row-->
  
  


  
  </div><!--/content-->
  
  </div><!--/span9-->
  
  
<script type="text/javascript"><!--
$(document).ready(function(){

	$('.colorbox img').live("click",function(e){
		e.preventDefault();
	});
});
//--></script> 
<script type="text/javascript"><!--

    
$('#button-cart').bind('click', function() {

	$.ajax({
		url: 'index.php?route=checkout/cart/add',
		type: 'post',
		data: $('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea'),
		dataType: 'json',
		success: function(json) {
		$(window).colorbox.close();
			$('.success, .warning, .attention, information, .error').remove();

			if (json['redirect']) {
				location = json['redirect'];
			}
			
			if (json['error']) {
				if (json['error']['option']) {
					for (i in json['error']['option']) {
						$('#option-' + i).after('<span class="error">' + json['error']['option'][i] + '</span>');
					}
				}
                
                if (json['error']['profile']) {
                    $('select[name="profile_id"]').after('<span class="error">' + json['error']['profile'] + '</span>');
                }
			} 
			
			if (json['success']) {
				$('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/denzi/image/close.png" alt="" class="close" /></div>');
					
				$('.success').fadeIn('slow');
					
				$('#cart-total').html(json['total']);
				
				$('html, body').animate({ scrollTop: 0 }, 'slow'); 
			}	
		}
	});
});
//--></script>


<script type="text/javascript"><!--
$('#tabs a').tabs();
//--></script> 
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-timepicker-addon.js"></script> 
<script type="text/javascript"><!--
$(document).ready(function() {
	if ($.browser.msie && $.browser.version == 6) {
		$('.date, .datetime, .time').bgIframe();
	}
	$('.date').datepicker({dateFormat: 'yy-mm-dd'});
	$('.datetime').datetimepicker({
		dateFormat: 'yy-mm-dd',
		timeFormat: 'h:m'
	});
	$('.time').timepicker({timeFormat: 'h:m'});
});
//--></script> 
